<?
class AlbumImageBO extends BusinessObject{

  /* private function using in constructors */ 
  function setAttributes(){
	$this->fields	= array(
		'id'			=> 'album_imagesID',
		'article_id'	=> 'album_imagesArticleID',
		'name'		=> 'album_imagesName',
		'pos'			=> 'album_imagesPos',
		'alt'			=> 'album_imagesALT',
		'border'		=> 'album_imagesBorder',
		'width'		=> 'album_imagesWidth',
		'height'		=> 'album_imagesHeight',
//		'descr'		=> 'album_imagesDescr',
		'need_enlarge'=> 'album_imagesEnlarge'
       );

    $alb_img_lang = new AlbumImageLangBO();
    $this->relations = array("{$alb_img_lang->tableName}" =>"{$alb_img_lang->tableName}.{$alb_img_lang->fields[imgID]} = {$this->tableName}.{$this->fields[id]}");

    BusinessObject::setAttributes();
  }
  /* constructor */
  function AlbumImageBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("album_images");
    $this->setAttributes();
  }
}
?>